<nav class="navbar navbar-expand-md bg-danger navbar-dark">
    <a class="navbar-brand" style="background: url('public/static/img/pub/head/logo.png') 0 0 no-repeat;padding-left: 34px;" href="/">欢迎{$Think.session.AdminUId.userName}进入{$Think.config.siteName}后台管理</a>
    <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#collapsibleNavbar">
        <span class="navbar-toggler-icon"></span>
    </button>
    <div class="collapse navbar-collapse" id="collapsibleNavbar">
        <ul class="navbar-nav">
            <li class="nav-item">
                <a class="nav-link" href="javascript:;">{$Think.session.AdminUId.userName}</a>
            </li>
            <li class="nav-item">
                <a class="nav-link" id="manager_login_out" href="javascript:;">退出</a>
            </li>
        </ul>
    </div>
</nav>
<style>
    ol, ul, dl {
        margin-top: 0;
        margin-bottom: 0px;
    }
    dd {
        margin-bottom: 0px;
    }
    .row{
        margin-top: 5px;
    }
</style>
<script>
    $(function(){
        /**登出*/
        $("#manager_login_out").click(function () {
            $.ajax({
                url:"{:url('admin/Adminverification/login_out')}",
                type:"POST",
                dataType:"json",
                success:function (data) {
                    if(data.code=="1"){
                        location.reload();
                    }else{
                        alert("登出失败！请稍后重试");
                    }
                }
            });
        });
    })
</script>